<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class WorkerController extends Controller
{
    public function posts(){
	DB::table('cats')->insert(['name'=>'1234']);	
    }
   public function shop(){
	if(empty($_POST)){
		return view('ceshi');
        }else{
		echo DB::table('cats')->insert(['name'=>$_POST['name']])?1:0;
	}
   }
}
